package wangm.netty.test1;

import wangm.bean.User;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageDecoder;

import java.util.List;

/**
 * description
 *
 * @author zk
 * @since 2018/7/20
 */
public class Test1UserDealDecoder extends MessageToMessageDecoder<User> {
    @Override
    protected void decode(ChannelHandlerContext ctx, User msg, List<Object> out) throws Exception {
        System.out.println("the user msg in server is username :" + msg.getUsername() + ",password:" + msg.getPassword());
    }
}
